package com.moyu.crowdsource.entity;

import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class CommodityOrder {
    @ApiModelProperty(value ="商品ID（无需填写）")
    private String commodityOrderId;

    @ApiModelProperty(value ="订单价格（发布时必填）")
    private BigDecimal offerPrice;

    @ApiModelProperty(value ="获利（非必填）")
    private BigDecimal profit;

    @ApiModelProperty(value ="发布用户ID（发布时必填）")
    private Integer issueUserId;

    @ApiModelProperty(value ="学校地址（发布时必填）")
    @NotBlank
    private String schoolLocation;

    @ApiModelProperty(value ="订单状态")
    private String status;

    @ApiModelProperty(value ="购买顾客ID（非必填）")
    private Integer clientUserId;

    @ApiModelProperty(value ="订单创建时间",example = "2018-05-20T02:23:43.000+0000")
    private String createTime;

    @ApiModelProperty(value ="订单交易时间（非必填）",example = "2018-05-20 10:23:43.0")
    private String getTime;

    @ApiModelProperty(value ="订单介绍（发布时必填）")
    @NotBlank
    private String introduce;

    @ApiModelProperty(value ="订单物品类型（发布时必填）")
    @NotBlank
    private String variety;

    @ApiModelProperty(value ="订单物品名称（发布时必填）")
    @NotBlank
    private String goodName;

    private String shippingStatus;

    @ApiModelProperty(value ="支付状态")
    private String payStatus;

    private String consignee;

    private String country;

    private String province;

    private String city;

    private String district;

    @ApiModelProperty(value ="详细送货地址")
    private String address;

    private String zipcode;

    @ApiModelProperty(value ="收件人电话")
    private String mobile;

    private String email;

    private String postscript;

    private Byte shippingId;

    private String shippingName;

    private Byte payId;

    private String payName;

    private BigDecimal shippingFee;

    @ApiModelProperty(hidden = true)
    @ApiParam(hidden = true)
    private List<CommodityImage> commodityImages;


    public String getShippingStatus() {
        return shippingStatus;
    }

    public void setShippingStatus(String shippingStatus) {
        this.shippingStatus = shippingStatus;
    }

    public String getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(String payStatus) {
        this.payStatus = payStatus;
    }

    public String getConsignee() {
        return consignee;
    }

    public void setConsignee(String consignee) {
        this.consignee = consignee;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getZipcode() {
        return zipcode;
    }

    public void setZipcode(String zipcode) {
        this.zipcode = zipcode;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPostscript() {
        return postscript;
    }

    public void setPostscript(String postscript) {
        this.postscript = postscript;
    }

    public Byte getShippingId() {
        return shippingId;
    }

    public void setShippingId(Byte shippingId) {
        this.shippingId = shippingId;
    }

    public String getShippingName() {
        return shippingName;
    }

    public void setShippingName(String shippingName) {
        this.shippingName = shippingName;
    }

    public Byte getPayId() {
        return payId;
    }

    public void setPayId(Byte payId) {
        this.payId = payId;
    }

    public String getPayName() {
        return payName;
    }

    public void setPayName(String payName) {
        this.payName = payName;
    }

    public BigDecimal getShippingFee() {
        return shippingFee;
    }

    public void setShippingFee(BigDecimal shippingFee) {
        this.shippingFee = shippingFee;
    }

    public String getGoodName() {
        return goodName;
    }

    public void setGoodName(String goodName) {
        this.goodName = goodName;
    }

    public List<CommodityImage> getCommodityImages() {
        return commodityImages;
    }

    public void setCommodityImages(List<CommodityImage> commodityImages) {
        this.commodityImages = commodityImages;
    }

    public String getVariety() {
        return variety;
    }

    public void setVariety(String variety) {
        this.variety = variety == null ? null : variety.trim();
    }

    public String getCommodityOrderId() {
        return commodityOrderId;
    }

    public void setCommodityOrderId(String commodityOrderId) {
        this.commodityOrderId = commodityOrderId == null ? null : commodityOrderId.trim();
    }

    public BigDecimal getOfferPrice() {
        return offerPrice;
    }

    public void setOfferPrice(BigDecimal offerPrice) {
        this.offerPrice = offerPrice;
    }

    public BigDecimal getProfit() {
        return profit;
    }

    public void setProfit(BigDecimal profit) {
        this.profit = profit;
    }

    public Integer getIssueUserId() {
        return issueUserId;
    }

    public void setIssueUserId(Integer issueUserId) {
        this.issueUserId = issueUserId;
    }

    public String getSchoolLocation() {
        return schoolLocation;
    }

    public void setSchoolLocation(String schoolLocation) {
        this.schoolLocation = schoolLocation == null ? null : schoolLocation.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Integer getClientUserId() {
        return clientUserId;
    }

    public void setClientUserId(Integer clientUserId) {
        this.clientUserId = clientUserId;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getGetTime() {
        return getTime;
    }

    public void setGetTime(String getTime) {
        this.getTime = getTime;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce == null ? null : introduce.trim();
    }
}